import Icon from '@/components/icon'
import Button from '@/components/button'
import Timer from '@/components/timer'
import Dialog, { DialogInstall } from '@/components/dialog'

  
// import '@/assets/css/spin.scss'

import type { App } from 'vue'

import Spin from './spin'
 
import GuideDialog from '@/components/guide-dialog'


// import H5Container from '@/components/h5-container'



const Components=[
    Icon,
    Button,
    Timer,
    Dialog,
    GuideDialog,
    // H5Container,
]

const usePlugin = (app: App) => { 

}

const registerComponents = (app) => {
    Components.forEach((component) => {
        app.component(component.name, component)
    })
    app.use(DialogInstall)
  app.config.globalProperties.$spin = Spin
}

export { 
    Components,
    registerComponents
} 